﻿// =================================================================== 
// 项目说明
//====================================================================
// 文件： ERP_CusCargo.cs
// 创建时间：2016/11/30
// 负责人：
// ===================================================================
using System;

//注意：该文件自动生成，一般请不要手工修改。

namespace CRMMis.Model
{
	/// <summary>
	///商品目录表(ERP_CusCargo)数据实体
	/// </summary>
	[Serializable]
	public class ERP_CusCargo
	{
		#region 变量定义
		
		///<summary>
		///商品ID
		///</summary>
		private int _cargoId;
		
		///<summary>
		///客户ID
		///</summary>
		private int _customId;
		
		///<summary>
		///商品名称
		///</summary>
		private string _cargoName = String.Empty;
		
		///<summary>
		///拼音码
		///</summary>
		private string _spell = String.Empty;
		
		///<summary>
		///别名
		///</summary>
		private string _byName = String.Empty;
		
		///<summary>
		///商品代码
		///</summary>
		private string _cargoCode = String.Empty;
		
		///<summary>
		///规格
		///</summary>
		private string _spec = String.Empty;
		
		///<summary>
		///型号
		///</summary>
		private string _version = String.Empty;
		
		///<summary>
		///生产厂家
		///</summary>
		private string _produceName = String.Empty;
		
		///<summary>
		///产地
		///</summary>
		private string _area = String.Empty;
		
		///<summary>
		///用途Id
		///</summary>
		private int _useId;
		
		///<summary>
		///分类ID
		///</summary>
		private int _typeId;
		
		///<summary>
		///计量单位
		///</summary>
		private string _unit = String.Empty;
		
		///<summary>
		///进口国产
		///</summary>
		private int _isImported;
		
		///<summary>
		///图片
		///</summary>
		private string _pic = String.Empty;
		
		///<summary>
		///录入人
		///</summary>
		private string _inUser = String.Empty;
		
		///<summary>
		///录入时间
		///</summary>
		private string _inDate = String.Empty;
		
		///<summary>
		///1.正常；0.失效
		///</summary>
		private int _state;
		#endregion
		
		#region 构造函数

		///<summary>
		///商品目录表的构造函数，默认值通过数据库的default取得
		///</summary>
		public ERP_CusCargo()
		{
 
		}
		///<summary>
		///商品目录表
		///</summary>
		public ERP_CusCargo
		(
			int cargoId,
			int customId,
			string cargoName,
			string spell,
			string byName,
			string cargoCode,
			string spec,
			string version,
			string produceName,
			string area,
			int useId,
			int typeId,
			string unit,
			int isImported,
			string pic,
			string inUser,
			string inDate,
			int state
		)
		{
			_cargoId     = cargoId;
			_customId    = customId;
			_cargoName   = cargoName;
			_spell       = spell;
			_byName      = byName;
			_cargoCode   = cargoCode;
			_spec        = spec;
			_version     = version;
			_produceName = produceName;
			_area        = area;
			_useId       = useId;
			_typeId      = typeId;
			_unit        = unit;
			_isImported  = isImported;
			_pic         = pic;
			_inUser      = inUser;
			_inDate      = inDate;
			_state       = state;
			
		}
		
		

		#endregion
		
		#region 公共属性

		
		
		///<summary>
		///商品ID
		///</summary>
		public int CargoId
		{
			get {return _cargoId;}
			set {_cargoId = value;}
		}

		
		///<summary>
		///客户ID
		///</summary>
		public int CustomId
		{
			get {return _customId;}
			set {_customId = value;}
		}

		
		///<summary>
		///商品名称
		///</summary>
		public string CargoName
		{
			get {return _cargoName;}
			set {_cargoName = value;}
		}

		
		///<summary>
		///拼音码
		///</summary>
		public string Spell
		{
			get {return _spell;}
			set {_spell = value;}
		}

		
		///<summary>
		///别名
		///</summary>
		public string ByName
		{
			get {return _byName;}
			set {_byName = value;}
		}

		
		///<summary>
		///商品代码
		///</summary>
		public string CargoCode
		{
			get {return _cargoCode;}
			set {_cargoCode = value;}
		}

		
		///<summary>
		///规格
		///</summary>
		public string Spec
		{
			get {return _spec;}
			set {_spec = value;}
		}

		
		///<summary>
		///型号
		///</summary>
		public string Version
		{
			get {return _version;}
			set {_version = value;}
		}

		
		///<summary>
		///生产厂家
		///</summary>
		public string ProduceName
		{
			get {return _produceName;}
			set {_produceName = value;}
		}

		
		///<summary>
		///产地
		///</summary>
		public string Area
		{
			get {return _area;}
			set {_area = value;}
		}

		
		///<summary>
		///用途Id
		///</summary>
		public int UseId
		{
			get {return _useId;}
			set {_useId = value;}
		}

		
		///<summary>
		///分类ID
		///</summary>
		public int TypeId
		{
			get {return _typeId;}
			set {_typeId = value;}
		}

		
		///<summary>
		///计量单位
		///</summary>
		public string Unit
		{
			get {return _unit;}
			set {_unit = value;}
		}

		
		///<summary>
		///进口国产
		///</summary>
		public int IsImported
		{
			get {return _isImported;}
			set {_isImported = value;}
		}

		
		///<summary>
		///图片
		///</summary>
		public string Pic
		{
			get {return _pic;}
			set {_pic = value;}
		}

		
		///<summary>
		///录入人
		///</summary>
		public string InUser
		{
			get {return _inUser;}
			set {_inUser = value;}
		}

		
		///<summary>
		///录入时间
		///</summary>
		public string InDate
		{
			get {return _inDate;}
			set {_inDate = value;}
		}

		
		///<summary>
		///1.正常；0.失效
		///</summary>
		public int State
		{
			get {return _state;}
			set {_state = value;}
		}
	
		#endregion
		
	}
}